package spindles.gwt.server;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.io.IOUtils;

public class ExportServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8787565157300854568L;
	
	public void doGet(HttpServletRequest request, HttpServletResponse response)
	throws ServletException, IOException {
		PrintWriter out = null;
		try{
			out = response.getWriter();
			
			//exportType: spindles
//			String exportType = request.getParameter("exportType");
//			//level: epoch, person
//			String level = request.getParameter("level");
//			
//			long id = Long.parseLong(request.getParameter("id"));
//			boolean soft = Boolean.parseBoolean(request.getParameter("soft"));
//			
//			
//			if(exportType.equals("spindles")){
//				
//			}			
		
		} finally{
			IOUtils.closeQuietly(out);
		}
		
	}
	
	
	
	

}
